Denizen Script Language Explanations


Language Explanations explain components of Denizen in a more direct and technical way than The Beginner's Guide.


Showing 1 out of 56 language explanations...
NameDynamic Label GUI Element
DescriptionDynamic labels work similarly to Language:Label GUI Elements, but with dynamically updating text; they have a UI type of "dynamic_label".


ui_type: dynamic_label
# The dynamically updating text for the label, required.
text: <text>
# The vertical alignment for the label's text, optional.
vertical_alignment: TOP/CENTER/BOTTOM
# The horizontal alignment for the label's text, optional.
horizontal_alignment: LEFT/CENTER/RIGHT
# The color for the label's text, optional.
color: <ColorTag>

The text, including tags, is parsed every frame.
With complex/otherwise computationally expensive tags, you should usually prefer using your own system for updating the text,
to avoid performance issues due to rapid parsing of such tags.
GroupGUI System
Sourcehttps://github.com/DenizenScript/Clientizen/blob/master/src/main/java/com/denizenscript/clientizen/scripts/containers/gui/elements/DynamicLabelElement.java#L21